package com.cloud.lesson.service.imp;

import com.cloud.lesson.dao.PaymentDao;
import com.cloud.lesson.enity.Payment;
import com.cloud.lesson.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author: Mr.Lai
 * @createTime: 2020/12/14
 * @classNote:
 **/
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
